//
//  WXApiTool.h
//  DaJiang
//
//  Created by sally on 16/10/10.
//  Copyright © 2016年 jiniu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "WXApi.h"

@protocol WXApiToolDelegate;

@interface WXApiTool : NSObject<WXApiDelegate>
singleton_interface(WXApiTool)

//应用ID
@property (strong,nonatomic) NSString *appID;
//商户号，填写商户对应参数
@property (strong,nonatomic) NSString *mchID;
//预支付url地址
@property (strong,nonatomic) NSString *payURL;
//回调url
@property (strong,nonatomic) NSString *notifyURL;
//debug信息
@property (strong,nonatomic) NSMutableString *debugInfo;
//商户API密钥，填写相应参数
@property (strong,nonatomic) NSString *spKey;
@property (assign,nonatomic) NSInteger lastErrCode;
@property (nonatomic, assign) id<WXApiToolDelegate> delegate;

//调起微信支付
- (void)WXPayWithOrderName:(NSString *)name orderNum:(NSString *)orderNum price:(NSString *)price;
//获取当前的debug信息
- (NSString *)getDebugInfo;

@end

@protocol WXApiToolDelegate <NSObject>
- (void)noticeWXPaySuccess;
@end

